import 'package:bordered_text/bordered_text.dart';
import 'package:flutter/material.dart';
import 'package:find_friend/const/const.dart';
class MineSignPage extends StatelessWidget {
  
  final String mobile;

  const MineSignPage({Key key, this.mobile}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    
    final size = MediaQuery.of(context).size;
    print(size.height);
    return Scaffold(
      body: Container(
        decoration: BoxDecoration(
          image: DecorationImage(
            image: AssetImage("assets/BG.png"),
            fit: BoxFit.cover
          )
        ),
        child: SingleChildScrollView(
          child: Column(
            children: [
              AppBar(
                backgroundColor: Colors.transparent,
                elevation: 0,
                leading: IconButton(
                  onPressed: (){
                    Navigator.of(context).pop();
                  },
                  icon: Image.asset("assets/fanhui.png", color: Colors.white,),
                ),
              ),
              SizedBox(
                height: 95,
                width: size.width,
                child: Stack(
                  alignment: Alignment.topCenter,
                  children: [
                    Positioned(
                      top: 0,
                      left: 30,
                      right: 30,
                      child: Image.asset("assets/bt.png"),
                    ),
                    BorderedText(
                      strokeWidth: 6.0,
                      strokeColor: const Color(0xff413FB6),
                      child: Text(
                        '每日签到有礼',
                        style: TextStyle(
                          color: Colors.white,
                          fontSize: 36.0,
                          fontWeight: FontWeight.bold,
                        ),
                      ),
                    ),
                  ],
                ),
              ),
              Container(
                height: 426,
                width: size.width,
                child: Stack(
                  alignment: Alignment.topCenter,
                  children: [
                    Positioned(
                      left: 4.5,
                      right: 4.5,
                      top: 0,
                      child: Image.asset("assets/di.png", height: 385.0,)
                    ),
                    Positioned(
                      top: 125,
                      child: Image.asset("assets/biao.png"),
                    ),
                    Positioned(
                      top: 385.0 - 80.0,
                      child: Image.asset("assets/anniu.png", height: 120, width: 120,),
                    ),
                  ],
                ),
              ),
              Container(
                height: 207.h,
                width: size.width,
                decoration: BoxDecoration(
                  color: const Color(0xffFBF6F1),
                  borderRadius: BorderRadius.vertical(top: const Radius.circular(15))
                ),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Padding(
                      padding: const EdgeInsets.only(left:10, top: 14),
                      child: Text("每日任务", style: instanceTextStyle(15, APP_font_black),),
                    )
                  ],
                ),
              )
            ],
          ),
        ),
      ),
    );
  }
}